module.exports = {
  publicPath: import.meta.NODE_ENV === 'production' ? '/my-reading/' : '/',
  devServer: {
    open: true,
    port: 9002
  },
  lintOnSave: false, // 配置关闭eslint
  configureWebpack: {
    devtool: import.meta.NODE_ENV === 'development' ? 'source-map' : '',
    module: {
      rules: [{
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto'
      }]
    }
  }
}
